﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebChat.Admin
{
    public partial class ChannelCreateSuccess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string channelIdString = Request["channelId"];

            int channelId;
            if (!Int32.TryParse(channelIdString, out channelId))
            {
                Response.Redirect("ChannelCreateFailure.aspx");
            }

            this.HyperLinkChannel.Text = "You can view the channel here.";
            this.HyperLinkChannel.NavigateUrl = "~/User/Channel.aspx?channelId=" + channelId;
        }
    }
}